package com.flute.framework.search.result.xmlresult;

import java.util.HashMap;
import java.util.Map;

public class XmlResultTemplate {
	private String head;
	private String foot;
	private String main;
	private String loop;
	private Map<String, ExXpathTemplate> exMap;

	public XmlResultTemplate() {
		exMap = new HashMap<String, ExXpathTemplate>();
	}

	public XmlResultTemplate(String head) {
		this();
		this.head = head;
	}

	public XmlResultTemplate(String head, String foot) {
		this(head);
		this.foot = foot;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	public String getFoot() {
		return foot;
	}

	public void setFoot(String foot) {
		this.foot = foot;
	}

	public String getMain() {
		return main;
	}

	public void setMain(String main) {
		this.main = main;
	}

	public String getLoop() {
		return loop;
	}

	public void setLoop(String loop) {
		this.loop = loop;
	}

	public Map<String, ExXpathTemplate> getExMap() {
		return exMap;
	}

	public void setExMap(Map<String, ExXpathTemplate> exMap) {
		this.exMap = exMap;
	}

	public static XmlResultTemplate parse(String head) {
		return new XmlResultTemplate(head);
	}

	public static XmlResultTemplate parse(String head, String foot) {
		return new XmlResultTemplate(head, foot);
	}

}
